package com.hanhai.zrb.mobile.controller;

import java.util.HashMap;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.hanhai.common.annotation.LoginNeedless;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiParam;
import com.wordnik.swagger.annotations.ApiResponse;
import com.wordnik.swagger.annotations.ApiResponses;

@LoginNeedless
@RestController
@RequestMapping(value = "/test")
public class APITestController {

	@ApiResponses(value = { @ApiResponse(code = 405, message = "Invalid input") })
	@RequestMapping(value = "/apidoc", method = RequestMethod.GET)
	@ApiOperation(value = "添加用户", httpMethod = "GET", response = String.class, notes = "add user")
	public @ResponseBody HashMap<String, Object> sayHello(
			@ApiParam(required = true, name = "postData", value = "用户信息json数据") @RequestParam(value = "postData", required = true) String postData) {
		return new HashMap<String, Object>();
	}

	
}
